package main

import (
	"encoding/json"
	"go_test/src/code.song.study/domain"
	"log"
	"math/rand"
	"time"
)

func init() {
	log.SetPrefix("TRACE: ")
	rand.Seed(time.Now().Unix())
}

func main() {
	orderInfo := domain.NewOrderInfo(rand.Float64(), rand.Float64())
	marshal, _ := json.Marshal(orderInfo)
	log.Println("info", string(marshal))
}
